package com.sservice.model.entity;

import com.sservice.urp.entity.QueryCondition;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
@Data
public class Order extends QueryCondition implements Serializable {
    private static final long serialVersionUID = -6977542230470136212L;
    private Integer id;
    private Integer sysId;

    public Integer getSysId() {
        return sysId;
    }

    public void setSysId(Integer sysId) {
        this.sysId = sysId;
    }
    private String no;
    private String shipNo;// 运单号
    private String type1;// 订单类型

    private String saleId;
    private String transactionId;//交易ID

    private String ongoing;//正在进行的拼团

    private String remark;
    private String saleName;

    private BigDecimal percent;

    private String clienteleId;

    private String clienteleName;
    private String businessId; // 是否为发起拼场
    private String unitCode;

    private String clienteleUserName;

    private String clienteleUserPhone;

    private String offerId;

    private String goodsId;
    private String goodsNo;

    private String goodsName;
    /*
    报价
     */
    private BigDecimal price;
    /**
     * 实际支付单价
     */
    private BigDecimal actualPrice;

    private BigDecimal number;
    /***
     * 实提数量
     */
    private BigDecimal actualNumber;
    /**
     * 实际收款
     */
    private BigDecimal actualReceived; // 实际收款数量
    /**
     * 0正常执行，1终止执行，2强制执行完毕,0为默认值
     */
    private String status;
    /**
     *
     */
    private BigDecimal deliverNumber;

    private String commissionStatus;

    private BigDecimal total;
    /**
     * 实际收取
     */
    private BigDecimal actualTotal;

    private String payStatus;
    /**
     * 发货状态：0未发货，1已发货，2部分发货
     */
    private String deliverStatus;

    private Date updateAt;

    private Date createAt;
    private Date endTime; //拼团截止日期
    private Date verifiedTime; // 核销时间
    /**
     * 审核时间
     */
    private Date checkTime;
    /**
     * 审核用户ID
     */
    private String checker;
    private String verified; // 是否已核销，1已核销
    private String invoiceStatus; // 发票状态，0未申请，1申请中，2已收发票
    private String applyBack; //  1申请退款
    private String hesuanStatus;
    private String hesuanPayStatus;
    private String hesuanCheckStatus;
    private String pack; // 包装规格
    private String qualityRequire; // 质量标准
    private String quality; //品质规格
    private String deliverPlace; //供货地
    private String salesName; //业务员姓名
    private String salesMan; //业务员ID
    private String address; //地址
    /***
     * 免费仓储天数
     */
    private Integer freeStoreDay;
    /**
     * 免费仓储类型：0合同签订日起,1交割日起
     */
    private String freeStoreType;
    private String checkStatus;
    private String refundNo;
    private String refundId;
    /**
     * 交货日期截止时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deliveryDayEnd;
    /**
     * 交货日期\开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deliveryDay;
    /**
     * 交货类型：0具体时间，1时间区间
     */
    private String deliveryType;
    //    free_store_day,free_store_type,delivery_day_end,delivery_day,delivery_type,pay_method,pay_date,pay_condition,pick_up_method
    /**
     * 提货方式
     */
    private String pickUpMethod;
    /**
     * 支付方式
     */
    private String payMethod;
    /**
     * 付款日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date payDate;
    /**
     * 拒绝原因
     */
    private String reason;
    /**
     * 付款条件
     */
    private String payCondition;

}